package a.f.d.a;

import a.c.e;
import a.c.k;
import a.c.w;
import a.d.f;
import a.f.kc;
import a.f.o;
import a.f.oc;
import a.f.zc;

class qc
{
  public void a(o paramo, bc parambc, byte paramByte, boolean paramBoolean)
  {
    boolean bool2 = d.R;
    boolean bool1 = d.Q;
    w localw = paramo.v();
    do
    {
      if (!localw.e()) {
        break;
      }
      fc localfc = parambc.a(localw.d()).m();
      if ((bool2) || ((localfc == null) || ((bool2) || (localfc.b() != paramByte))))
      {
        if (localfc == null)
        {
          if (bool2) {
            continue;
          }
          if (!paramBoolean) {}
        }
      }
      else {
        a(paramo, localw.d(), parambc);
      }
      localw.f();
    } while (!bool1);
  }
  
  public void a(o paramo, e parame, bc parambc)
  {
    boolean bool2 = d.R;
    boolean bool1 = d.Q;
    ec localec = parambc.a(parame);
    if (localec.d() == 0)
    {
      kc[] arrayOfkc = a(paramo, parame);
      if (((bool2) || (arrayOfkc != null)) && (arrayOfkc.length > 0))
      {
        zc localzc = paramo.d(parame);
        double d1 = localzc.a();
        double d2 = localzc.b();
        localzc.a(0.0D, 0.0D);
        int i = 0;
        do
        {
          if (i >= arrayOfkc.length) {
            break;
          }
          kc localkc = arrayOfkc[i];
          double d3 = localzc.c() * 0.5D;
          double d4 = localzc.d() * 0.5D;
          a(localec, localzc, localkc.d() + d3, localkc.e() + d4, localkc.b(), localkc.c(), true);
          i++;
          if ((!bool2) && (bool1)) {
            return;
          }
        } while (!bool1);
        if (!bool2) {
          localzc.a(d1, d2);
        }
      }
    }
  }
  
  protected kc[] a(o paramo, e parame)
  {
    k localk = paramo.c(oc.b);
    if ((d.R) || (localk != null)) {
      return (kc[])localk.get(parame);
    }
    return null;
  }
  
  public void a(ec paramec, zc paramzc, double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4, boolean paramBoolean)
  {
    boolean bool = d.R;
    f localf1 = paramBoolean ? paramec.a(0, paramzc) : paramec.b(0);
    if ((bool) || (localf1 != null)) {
      localf1.a(paramDouble1, paramDouble1 + paramDouble3, paramDouble2);
    }
    f localf2 = paramBoolean ? paramec.a(1, paramzc) : paramec.b(1);
    if ((bool) || (localf2 != null)) {
      localf2.b(paramDouble2, paramDouble2 + paramDouble4, paramDouble1 + paramDouble3);
    }
    f localf3 = paramBoolean ? paramec.a(2, paramzc) : paramec.b(2);
    if ((bool) || (localf3 != null)) {
      localf3.b(paramDouble1, paramDouble1 + paramDouble3, paramDouble2 + paramDouble4);
    }
    f localf4 = paramBoolean ? paramec.a(3, paramzc) : paramec.b(3);
    if ((bool) || (localf4 != null)) {
      localf4.a(paramDouble2, paramDouble2 + paramDouble4, paramDouble1);
    }
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.d.a.qc
 * JD-Core Version:    0.7.0.1
 */